import functools

def ignore_exception(*argums):
    def decorator(func):
        @functools.wraps(func)
        def wrapper(*args, **kwargs):
            try:
                value = func(*args, **kwargs)
                return value
            except Exception as ex:
                if ex.__class__ in argums:
                    print(f"Исключение {ex.__class__.__name__} обработано")
                else:
                    raise ex
        return wrapper
    return decorator